package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;

import java.util.List;
import java.util.Map;

public interface CheckGroupMapper {
    //添加检查组
    public void add(CheckGroup checkGroup);
    //添加检查组成功后，添加中间表t_checkgroup_checkitem
    public void setCheckGroupAndCheckItem(Map<String,Integer> map);
    //分页查询
    public Page<CheckGroup> findPage(String queryString);
    //根据checkgroup_id查询checkitem_id
    public List<Integer> findCheckItemIdByCheckGroupId(Integer id);
    //根据checkgroup_id删除中间表t_checkgroup_checkitem所有对应的checkitem_id
    public void deleteByCheckGroupId(Integer checkgroup_id);
    //修改检查组信息
    public void edit(CheckGroup checkGroup);
    //删除检查组
    public void delete(Integer id);
    //查询所有得检查组
    public List<CheckGroup> findAll();
}
